#y-version {
  position: relative;
}

.version-modal[hidden] {
  display: none;
}

.version-modal:not([hidden]) {
  position: absolute;
  top: 30px;
  right: 0;
  width: 300px;
  min-height: 300px;
  height: fit-content;
  z-index: 20;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 11px;
  border-top-right-radius: 0;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
}

.version-modal > button {
  position: absolute;
  right: 0;
  top: 0;
}

.version-list {
  line-height: 30px;
  padding: 0 8px;
  cursor: pointer;
}

.version-list:hover {
  background-color: #eee;
}

[ychange_type] {
  position: relative;
}
.ychange-hover {
  display: none;
}
*:hover > .ychange-hover {
  display: inline;
  position: absolute;
  top: -14px;
  left: 0;
  font-size: 12px;
  padding: 0 2px;
  border-radius: 3px 3px 0 0;
  color: #fdfdfe;
  user-select: none;
  word-break: normal;
}

ychange[ychange_type='removed'], p[ychange_type='removed'] {
  text-decoration: line-through;
}
/*
p[ychange_type='removed'] > span > br {
  display: none;
}
*/
*:not(ychange)[ychange_type='removed'] {
  background-color: #ff5a56;
  color: inherit !important;
}
img[ychange_type='removed'] {
  padding: 2px;
}
